﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Frame.Lib.Core.Base;
using Frame.Lib.Utilities;


namespace Frame.Lib.Core.Module
{
    public class ModuleDAL : BaseDAL
    {
        internal void ChangeState(List<int> ids, Module.ModuleState state)
        {
            string sql = "update " + STableName.Module + " set State = " + (int)state + " where ID in (" + ConvertUtil.ConvertToDbStr(ids) + ")";
            dbOper.RunSql(sql);
        }
    }
}
